<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018-8-6
 * Time: 下午 05:16
 * 配置类
 */


return array(
    /*数据库配置*/
    'db' => [
        'DB_HOST' => '127.0.0.1',
        'DB_USER' => 'root',
        'DB_PASS' => 'root',
        'DB_NAME' => 'sso',
        'DB_PORT' => '3306',
        'charset' => 'utf8',/*数据库编码*/
        'sortRule' => 'utf8_general_ci',/*排序规则*/
    ],
    'install' => [
        /*SQL文件安装路径*/
        'SQL_path' => [
            'configBasePath' => __DIR__ . '\\',
            'path' => '../zhideng.sql'
        ],
        /*表配置*/
        'table' => [
            'tb_user' => [
                'id' => 'int(11) NOT NULL',
                'username' => 'varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL',
                'password' => 'varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL',
                'stoken' => 'varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL',
                'primary_key' => 'PRIMARY KEY (`id`) USING BTREE'
            ]
        ]
    ],
    'apps' => [
        'A' => 'http://localhost:801/index.php?c=login&a=login',
        'B' => 'http://localhost:802/index.php?c=login&a=login'
    ],
    'app_logout' => [
        'A' => 'http://localhost:801/index.php?c=login&a=logout',
        'B' => 'http://localhost:802/index.php?c=login&a=logout'
    ],
    `website` => 'http://localhost:800/index.php?c='

);